package com.anjie.powerproject.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
public class WeatherData {
    @Id
    Long id;

    String sdate;

    @Column(name = "day_t_max")
    Double dayTMax;

    @Column(name = "day_t_min")
    Double dayTMin;

    @Column(name = "day_wind")
    Double dayWind;

    @Column(name = "day_hum_max")
    Double dayHumMax;

    @Column(name = "day_hum_min")
    Double dayHumMin;

    //weather  0 ：晴  ；1： 云  ；2 阴或霾 或其他  ；3 雨/雪
    @Column(name = "day_weather")
    Integer dayWeather;
}
